package com.mida.dms.knw.entity.vo;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class DataSetPage extends MapperPage{

	public DataSetPage(String searChData, int range, Long derailCodingSystemSoid,Long dataSetSoid,Long pageNo,Long pageSize,Long conceptSoid) {
		if(pageNo<=0) pageNo = 1L;
		super.search = searChData;
		this.range = range;
		this.derailCodingSystemSoid = derailCodingSystemSoid;
		this.dataSetSoid = dataSetSoid;
		super.pageSt = (pageNo-1)*pageSize+1;
		super.pageEd = pageNo*pageSize;
		this.conceptSoid=conceptSoid;
	}

	public DataSetPage(String searChData, int range, Long derailCodingSystemSoid, Long dataSetSoid) {
		super.search = searChData;
		this.range = range;
		this.derailCodingSystemSoid = derailCodingSystemSoid;
		this.dataSetSoid = dataSetSoid;
	}
	int range;

	@JsonSerialize(using= com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
	Long derailCodingSystemSoid;

	@JsonSerialize(using= com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
	Long dataSetSoid;

	@JsonSerialize(using= com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
	Long conceptSoid;
}
